<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $id=$_REQUEST['id'];
		$sql="update ".$oto."_apply_bank set isDefault='0' where userId='{$user_id}'";
		$result=$db->query($sql);
		$sql="update ".$oto."_apply_bank set isDefault='1' where userId='{$user_id}' and id='{$id}'";
		$result=$db->query($sql);
		echo json_encode($result);
?>